package com.starsoft.trade.bean;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * TradeBill entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "trade_bill")
public class TradeBill implements java.io.Serializable {

	// Fields

	private Integer billId;
	private String exId;
	private Integer billSerialnumber;
	private Integer acountId;
	private Timestamp billTime;
	private String billType;
	private Double billMoney;
	private Double billTradeMoney;
	private String secId;
	private Double secNum;
	private Double secPrice;
	private Double bondInterest;
	private Double feeCommision;
	private Double feeTax;
	private Double feeOther;
	private Double feeAll;
	private String billDesc;
	private Timestamp createTime;
	private Timestamp updateTime;

	// Constructors

	/** default constructor */
	public TradeBill() {
	}

	/** full constructor */
	public TradeBill(String exId, Integer billSerialnumber, Integer acountId, Timestamp billTime, String billType,
			Double billMoney, Double billTradeMoney, String secId, Double secNum, Double secPrice, Double bondInterest,
			Double feeCommision, Double feeTax, Double feeOther, Double feeAll, String billDesc, Timestamp createTime,
			Timestamp updateTime) {
		this.exId = exId;
		this.billSerialnumber = billSerialnumber;
		this.acountId = acountId;
		this.billTime = billTime;
		this.billType = billType;
		this.billMoney = billMoney;
		this.billTradeMoney = billTradeMoney;
		this.secId = secId;
		this.secNum = secNum;
		this.secPrice = secPrice;
		this.bondInterest = bondInterest;
		this.feeCommision = feeCommision;
		this.feeTax = feeTax;
		this.feeOther = feeOther;
		this.feeAll = feeAll;
		this.billDesc = billDesc;
		this.createTime = createTime;
		this.updateTime = updateTime;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "bill_id", unique = true, nullable = false)
	public Integer getBillId() {
		return this.billId;
	}

	public void setBillId(Integer billId) {
		this.billId = billId;
	}

	@Column(name = "exId", length = 50)
	public String getExId() {
		return this.exId;
	}

	public void setExId(String exId) {
		this.exId = exId;
	}

	@Column(name = "bill_serialnumber")
	public Integer getBillSerialnumber() {
		return this.billSerialnumber;
	}

	public void setBillSerialnumber(Integer billSerialnumber) {
		this.billSerialnumber = billSerialnumber;
	}

	@Column(name = "acount_id")
	public Integer getAcountId() {
		return this.acountId;
	}

	public void setAcountId(Integer acountId) {
		this.acountId = acountId;
	}

	@Column(name = "bill_time", length = 19)
	public Timestamp getBillTime() {
		return this.billTime;
	}

	public void setBillTime(Timestamp billTime) {
		this.billTime = billTime;
	}

	@Column(name = "bill_type", length = 100)
	public String getBillType() {
		return this.billType;
	}

	public void setBillType(String billType) {
		this.billType = billType;
	}

	@Column(name = "bill_money", precision = 22, scale = 0)
	public Double getBillMoney() {
		return this.billMoney;
	}

	public void setBillMoney(Double billMoney) {
		this.billMoney = billMoney;
	}

	@Column(name = "billTradeMoney", precision = 22, scale = 0)
	public Double getBillTradeMoney() {
		return this.billTradeMoney;
	}

	public void setBillTradeMoney(Double billTradeMoney) {
		this.billTradeMoney = billTradeMoney;
	}

	@Column(name = "secId", length = 10)
	public String getSecId() {
		return this.secId;
	}

	public void setSecId(String secId) {
		this.secId = secId;
	}

	@Column(name = "secNum", precision = 22, scale = 0)
	public Double getSecNum() {
		return this.secNum;
	}

	public void setSecNum(Double secNum) {
		this.secNum = secNum;
	}

	@Column(name = "sec_price", precision = 22, scale = 0)
	public Double getSecPrice() {
		return this.secPrice;
	}

	public void setSecPrice(Double secPrice) {
		this.secPrice = secPrice;
	}

	@Column(name = "bond_interest", precision = 22, scale = 0)
	public Double getBondInterest() {
		return this.bondInterest;
	}

	public void setBondInterest(Double bondInterest) {
		this.bondInterest = bondInterest;
	}

	@Column(name = "fee_commision", precision = 22, scale = 0)
	public Double getFeeCommision() {
		return this.feeCommision;
	}

	public void setFeeCommision(Double feeCommision) {
		this.feeCommision = feeCommision;
	}

	@Column(name = "fee_tax", precision = 22, scale = 0)
	public Double getFeeTax() {
		return this.feeTax;
	}

	public void setFeeTax(Double feeTax) {
		this.feeTax = feeTax;
	}

	@Column(name = "fee_other", precision = 22, scale = 0)
	public Double getFeeOther() {
		return this.feeOther;
	}

	public void setFeeOther(Double feeOther) {
		this.feeOther = feeOther;
	}

	@Column(name = "fee_all", precision = 22, scale = 0)
	public Double getFeeAll() {
		return this.feeAll;
	}

	public void setFeeAll(Double feeAll) {
		this.feeAll = feeAll;
	}

	@Column(name = "bill_desc", length = 500)
	public String getBillDesc() {
		return this.billDesc;
	}

	public void setBillDesc(String billDesc) {
		this.billDesc = billDesc;
	}

	@Column(name = "create_time", length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

	@Column(name = "update_time", length = 19)
	public Timestamp getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Timestamp updateTime) {
		this.updateTime = updateTime;
	}

}